<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form th:action="@{/sendMailWithFile}" enctype="multipart/form-data" method="post">
        发送者邮箱: <input type="text" name="from"> <br/>
        收件人邮箱: <input type="text" name="to"> <br/>
        抄送人邮箱: <input type="text" name="cc"> <br/>
        邮件的主题: <input type="text" name="subject"> <br/>
        邮件的内容: <textarea rows="10" cols="40" name="context"></textarea> <br/>
        邮件的附件: <input type="file" name="file"> <br/>
        <input type="submit" value="发送">
    </form>
</body>
</html>